package java虚拟机.chapter7;

/**
 * -XX:+TraceClassLoading
 * @author juntao zhang
 */
public class NotInitialization {

  public static class Super {

    public static int value = 123;

    static {
      System.out.println("super init!");
    }
  }

  public static class Sub extends Super {

    static {
      System.out.println("sub init!");
    }
  }

  public static void main(String[] args) {
//    int t = Super.value; //only init super
//    System.out.println("====");
    new Sub();
  }
}
